package uebung5;

import java.util.GregorianCalendar;

public class Date extends GregorianCalendar {
	
	Date() {}
	Date(int iDay,int iMonth,int iYear) {
		super(iYear,iMonth-1,iDay);
	}
	
	int day() {
		return get(DAY_OF_MONTH);
	}

	int month() {
		return get(MONTH)+1;
	}

	int year() {
		return get(YEAR);
	}
	
	public String toString() {
		return day() + "." + month() + "." + year();
	}
}